package com.example.springbootmybatisdemo.controller;

import com.example.springbootmybatisdemo.dao.StudentMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description TODO
 * @Author: cdd
 * @Date: 2020/7/2 16:02
 * @Version: 1.0
 */
@RestController
public class StudentController {

    @Resource
    StudentMapper studentMapper;

    @GetMapping("/test")
    public Object test(){
        return studentMapper.selectByPrimaryKey(1L);
    }
}
